<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./js/vue.js"></script>
</head>
<body>
    <div id="app">
        <!-- 当页面没有展示msg时，更改msg的值时，需要刷新vue监控才能展示 -->
        <p @click="msg=1">ceshi</p>
    </div>
</body>
<script>
    new Vue({
        el:"#app",
        data:{
            msg:""
        }
    })
</script>
</html>